package com.tool.grab.vpn.tunnel;

import android.net.VpnService;

import java.io.IOException;
import java.nio.ByteBuffer;
import java.nio.channels.SelectionKey;

public interface TunnelInterface {

    void onClose();
    boolean isOpen();
    boolean isRequest();
    void keyReady(SelectionKey key)throws IOException;
    void connect(VpnService service)throws IOException;
    void sendPacket(ByteBuffer buffer);
    void bindTunnel(TunnelInterface tunnel);






}
